home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_37.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  117KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | reckoner | sky
OCR: Wed. Aug 28 1996 Beginners Guide Macintosh Assembly Language Programming age And, Or and Exclusive Or Logical operations are very simple. An and" operation simply says both A and B are equal to a logical then set the result. ogical operations work at a bit level, that is, for you to decide what the outcome of a logical operation will be you have to understand the data Suppose we "and" and with the instruction ANDI W#1 op' and op contained If we look at the number in binary is 0001 and 1 1001. When these two numbers are anded. the processor looks at the numbers like this: 3210 Bit number 0001 in binary 1001 in binary First will look at both bit 3's. It says I have a l and a0 so I don't have two 1's. Therefore the result is zero Then it looks at bit 2's, which are both zero so the result is ...